class Parent{
  constructor(name) {
    this.name = name
  }
  getName() { 
    return this.name
  }
}

class Child extends Parent{
  constructor(name) {
    super(name)
    this.age = 18
  }
}

const c = new Child('Tom')
// console.log(c.constructor);

